﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.SetupMachineModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Setup
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        $(function () {
            alert("DDDD");
            $(".datepicker").datepicker();
        });
    </script>
    <h2>
        Setup</h2>
    <% using (Html.BeginForm())
       {%>
    <%= Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Fields</legend>
        <%--   <div class="editor-label">
                <%= Html.LabelFor(model => model.LocSetId) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.LocSetId) %>
                <%= Html.ValidationMessageFor(model => model.LocSetId) %>
            </div>--%>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.SetupDate) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.SetupDate, new { @class = "datepicker", Value = String.Format("{0:d}","01/01/2013") })%>
            <%= Html.ValidationMessageFor(model => model.SetupDate)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.ModelId)%>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.ModelId)%>
            <%= Html.ValidationMessageFor(model => model.ModelId)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.RentBasic)%>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.RentBasic)%>
            <%= Html.ValidationMessageFor(model => model.RentBasic)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.Temp)%>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Temp)%>
            <%= Html.ValidationMessageFor(model => model.Temp)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.SerialNo)%>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.SerialNo)%>
            <%= Html.ValidationMessageFor(model => model.SerialNo)%>
        </div>
         <div class="editor-label">
            <%= Html.LabelFor(model => model.StartMeter)%>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.StartMeter)%>
            <%= Html.ValidationMessageFor(model => model.StartMeter)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.Remark)%>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Remark)%>
            <%= Html.ValidationMessageFor(model => model.Remark)%>
        </div>
        <p>
            <input class="buttonSummit" type="submit" value="Create" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
